"use strict";
var rvc = require("../..");
var app = new rvc.App();
var text = rvc.text;
var redirect = rvc.redirect;
var static_res = rvc.static_res;
app.use(static_res(__dirname +"/public"));
app.use(text);
app.use(redirect);



app.get('/url1', function (req, res) {
    res.redirect("http://baidu.com");
});

app.get('/url2', function (req, res) {
    res.redirect("/1url");
});
app.get('/url3', function (req, res) {
    res.redirect("/url2");
});
app.get('/1url', function (req, res) {
    res.text("1url");
});
app.get('/url3/:u', function (req, res) {
    res.text(req.params.u);
});
app.listen(3000);
